package com.runrunfast.websocket.config;

import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.request.AuthQqRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AuthRequestConfig {

    @Autowired
    AuthConfigValue authConfigValue;

    public AuthQqRequest getAuthQqRequest() {
        return new AuthQqRequest(AuthConfig.builder()
                .clientId(authConfigValue.APPID)
                .clientSecret(authConfigValue.APPKEY)
                .redirectUri(authConfigValue.CALLBACK)
                .build());
    }


}
